package com.tang.usercenter.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.tang.usercenter.entity.UserEntity;

/**
 * 用户服务
 */
public interface UserService extends IService<UserEntity> {
    UserEntity getCurrentUser();

    /**
     * 根据用户名查询用户
     */
    UserEntity getUserByUserName(String userName);

    /**
     * 注册用户
     */
    void register(UserEntity entity);

    /**
     * 登录
     */
    String login(UserEntity entity);
}
